package com.xjm.bean.resolveable;

import org.springframework.core.ResolvableType;

import java.util.HashMap;
import java.util.List;

/**
 * @author jaymin
 * 2021/1/16 16:52
 */
public class ResolvableDemo {
	private HashMap<String, List<Integer>> customizedMap;

	public static void main(String[] args) throws NoSuchFieldException {
		ResolvableType customizedMap = ResolvableType.forField(ResolvableDemo.class.getDeclaredField("customizedMap"));
		System.out.println(customizedMap.getGeneric(0).resolve());
		System.out.println(customizedMap.getGeneric(1).resolve());
		System.out.println(customizedMap.getGeneric(1));
		System.out.println(customizedMap.getSuperType());
		System.out.println(customizedMap.asMap());
		System.out.println(customizedMap.resolveGeneric(1, 0));
	}
}
